/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

$ouiBadgeGroupGutterTypes: (
  gutterExtraSmall: $ouiSizeXS,
  gutterSmall: $ouiSizeS,
);

.ouiBadgeGroup__item {
  display: inline-block;
  max-width: 100%;
}

// Gutter Sizes
@each $gutterName, $gutterSize in $ouiBadgeGroupGutterTypes {
  $halfGutterSize: $gutterSize * .5;

  .ouiBadgeGroup--#{$gutterName} {
    margin: -$halfGutterSize;

    & > .ouiBadgeGroup__item {
      margin: $halfGutterSize;
      max-width: calc(100% - #{$gutterSize});
    }
  }
}


/* OUI -> EUI Aliases */
$euiBadgeGroupGutterTypes: $ouiBadgeGroupGutterTypes;
/* End of Aliases */
